import { ref, computed,toRefs } from 'vue'
import { defineStore } from 'pinia'

export const useUserStore = defineStore('user', () => {
  const userInfo = ref({
    name: '',
    username:'',
    member: ''
  })
  const logout = () => {
    userInfo.value = {}
  }
  return { userInfo,logout }
},{persist: true})
